<template>
  <div>
<h1>vue3生命周期</h1>
  </div>
</template>

<script>
import { onMounted } from 'vue'
export default {
  setup () {
    onMounted(() => {
      console.log('组件挂载执行')
    })

    return {}
  }
}
</script>

<style lang="scss" scoped>

</style>
